.class Lrexsee/multimedia/RexseeImageCapture$3;
.super Ljava/lang/Object;
.source "RexseeImageCapture.java"

# interfaces
.implements Landroid/view/SurfaceHolder$Callback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lrexsee/multimedia/RexseeImageCapture;->start(Ljava/lang/String;Z)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lrexsee/multimedia/RexseeImageCapture;

.field private final synthetic val$autoFocus:Z

.field private final synthetic val$path:Ljava/lang/String;


# direct methods
.method constructor <init>(Lrexsee/multimedia/RexseeImageCapture;ZLjava/lang/String;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    iput-boolean p2, p0, Lrexsee/multimedia/RexseeImageCapture$3;->val$autoFocus:Z

    iput-object p3, p0, Lrexsee/multimedia/RexseeImageCapture$3;->val$path:Ljava/lang/String;

    .line 90
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method static synthetic access$0(Lrexsee/multimedia/RexseeImageCapture$3;)Lrexsee/multimedia/RexseeImageCapture;
    .locals 1

    .prologue
    .line 90
    iget-object v0, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    return-object v0
.end method


# virtual methods
.method public surfaceChanged(Landroid/view/SurfaceHolder;III)V
    .locals 0
    .param p1, "holder"    # Landroid/view/SurfaceHolder;
    .param p2, "format"    # I
    .param p3, "w"    # I
    .param p4, "h"    # I

    .prologue
    .line 93
    return-void
.end method

.method public surfaceCreated(Landroid/view/SurfaceHolder;)V
    .locals 6
    .param p1, "holder"    # Landroid/view/SurfaceHolder;

    .prologue
    .line 97
    :try_start_0
    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    invoke-static {}, Landroid/hardware/Camera;->open()Landroid/hardware/Camera;

    move-result-object v2

    invoke-static {v1, v2}, Lrexsee/multimedia/RexseeImageCapture;->access$1(Lrexsee/multimedia/RexseeImageCapture;Landroid/hardware/Camera;)V

    .line 98
    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mArguments:Lrexsee/multimedia/ImageCaptureArguments;
    invoke-static {v1}, Lrexsee/multimedia/RexseeImageCapture;->access$2(Lrexsee/multimedia/RexseeImageCapture;)Lrexsee/multimedia/ImageCaptureArguments;

    move-result-object v1

    iget-object v2, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v2}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v2

    invoke-virtual {v1, v2}, Lrexsee/multimedia/ImageCaptureArguments;->setCamera(Landroid/hardware/Camera;)Landroid/hardware/Camera;

    .line 99
    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v1}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v1

    new-instance v2, Lrexsee/multimedia/RexseeImageCapture$3$1;

    invoke-direct {v2, p0}, Lrexsee/multimedia/RexseeImageCapture$3$1;-><init>(Lrexsee/multimedia/RexseeImageCapture$3;)V

    invoke-virtual {v1, v2}, Landroid/hardware/Camera;->setErrorCallback(Landroid/hardware/Camera$ErrorCallback;)V

    .line 114
    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v1}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v1

    invoke-virtual {v1, p1}, Landroid/hardware/Camera;->setPreviewDisplay(Landroid/view/SurfaceHolder;)V

    .line 115
    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v1}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v1

    invoke-virtual {v1}, Landroid/hardware/Camera;->startPreview()V

    .line 116
    iget-boolean v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->val$autoFocus:Z

    if-eqz v1, :cond_1

    .line 117
    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v1}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v1

    new-instance v2, Lrexsee/multimedia/RexseeImageCapture$3$2;

    iget-object v3, p0, Lrexsee/multimedia/RexseeImageCapture$3;->val$path:Ljava/lang/String;

    invoke-direct {v2, p0, v3}, Lrexsee/multimedia/RexseeImageCapture$3$2;-><init>(Lrexsee/multimedia/RexseeImageCapture$3;Ljava/lang/String;)V

    invoke-virtual {v1, v2}, Landroid/hardware/Camera;->autoFocus(Landroid/hardware/Camera$AutoFocusCallback;)V

    .line 158
    :cond_0
    :goto_0
    return-void

    .line 139
    :cond_1
    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v1}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v1

    const/4 v2, 0x0

    const/4 v3, 0x0

    new-instance v4, Lrexsee/multimedia/RexseeImageCapture$3$3;

    iget-object v5, p0, Lrexsee/multimedia/RexseeImageCapture$3;->val$path:Ljava/lang/String;

    invoke-direct {v4, p0, v5}, Lrexsee/multimedia/RexseeImageCapture$3$3;-><init>(Lrexsee/multimedia/RexseeImageCapture$3;Ljava/lang/String;)V

    invoke-virtual {v1, v2, v3, v4}, Landroid/hardware/Camera;->takePicture(Landroid/hardware/Camera$ShutterCallback;Landroid/hardware/Camera$PictureCallback;Landroid/hardware/Camera$PictureCallback;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 155
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 156
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/multimedia/RexseeImageCapture;->access$0(Lrexsee/multimedia/RexseeImageCapture;)Lrexsee/core/browser/Browser;

    move-result-object v1

    if-eqz v1, :cond_0

    iget-object v1, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mBrowser:Lrexsee/core/browser/Browser;
    invoke-static {v1}, Lrexsee/multimedia/RexseeImageCapture;->access$0(Lrexsee/multimedia/RexseeImageCapture;)Lrexsee/core/browser/Browser;

    move-result-object v1

    iget-object v2, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    invoke-virtual {v2}, Lrexsee/multimedia/RexseeImageCapture;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2, v0}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/Exception;)V

    goto :goto_0
.end method

.method public surfaceDestroyed(Landroid/view/SurfaceHolder;)V
    .locals 2
    .param p1, "holder"    # Landroid/view/SurfaceHolder;

    .prologue
    .line 161
    iget-object v0, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v0}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 163
    :try_start_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v0}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v0

    invoke-virtual {v0}, Landroid/hardware/Camera;->stopPreview()V

    .line 164
    iget-object v0, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    # getter for: Lrexsee/multimedia/RexseeImageCapture;->mCamera:Landroid/hardware/Camera;
    invoke-static {v0}, Lrexsee/multimedia/RexseeImageCapture;->access$3(Lrexsee/multimedia/RexseeImageCapture;)Landroid/hardware/Camera;

    move-result-object v0

    invoke-virtual {v0}, Landroid/hardware/Camera;->release()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 168
    :cond_0
    :goto_0
    iget-object v0, p0, Lrexsee/multimedia/RexseeImageCapture$3;->this$0:Lrexsee/multimedia/RexseeImageCapture;

    const/4 v1, 0x0

    invoke-static {v0, v1}, Lrexsee/multimedia/RexseeImageCapture;->access$1(Lrexsee/multimedia/RexseeImageCapture;Landroid/hardware/Camera;)V

    .line 169
    return-void

    .line 165
    :catch_0
    move-exception v0

    goto :goto_0
.end method
